<?php

class Application_Form_AddGroup extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
        $this->setAction('/groups/add');
        
        $groups = array();
        foreach ($this->_attribs['groups'] as $group) {
            $groups[$group] = $group;
        }

        $this->addElement('select','id',array(
            'label'=>'Dołącz grupę o ID',
            'multiOptions'=> $groups
        ));
        
        $this->addElement('hidden','offer', array('value'
            =>  $this->_attribs['offer']));
        
        $this->addElement('submit','Stwórz',array(
           'label'=>'Dodaj' 
        ));
    }


}

